/**
 * Created by mapbar_front on 2021/1/2.
 */

const state = {
    message: '北京欢迎您',
    name: '天下'
}

const mutations = {
    increment(state,payload) {
        console.log('increment---',state);
        state.message = payload;
    },
    updateName(state,payload) {
        console.log('updateName---',state);
        state.name = payload;
    }
}

const actions = {

}

export default {
    namespaced: true,
    state,
    mutations,
    actions,
}